import request from '../axios/http'

//获取当前设置
export const setting = params => {
    return request({
        url:'/api/setting',
        method:'get',
        params
    })
}

//获取设置列表
export const settingList = params => {
    return request({
        url:'/setting/list',
        method:'get',
        params
    })
}

//添加记录
export const addSetting = params => {
    return request({
        url:'/setting/insert',
        method:'post',
        data:params
    })
}

//编辑
export const editSetting = params => {
    return request({
        url:'/setting/edit',
        method:'post',
        data:params
    })
}

//删除设置
export const delSetting = params => {
    return request({
        url:'/setting/delete',
        method:'post',
        data:params
    })
}

//修改当前设置
export const updateSetting = params => {
    return request({
        url:'/setting/set',
        method:'post',
        data:params
    })
}